
import java.time.LocalDate;
import java.util.ArrayList;


public class SCManagement {

    ArrayList<Student> students = new ArrayList<>();
    ArrayList<Course> Courses = new ArrayList<>();
    ArrayList<StudentAndCourse> StudentAndCourse = new ArrayList<>();

    //------------学生管理---------------
    //学生管理C
    public Student addStudent(Student student) {
        //TODO
        return student;
    }
    //学生管理C
    public Student addStudent(int id, String name, LocalDate birthday, Boolean sex) {
        //TODO
        return null;
    }
    //学生管理r
    public Student getStudent(int sid) {
        //TODO
        return null;
    }

    //学生管理r
    public ArrayList<Student> getAllStudents() {
        return students;
    }

    //学生管理U
    public Student updateStudent(Student student) {
        //TODO
        return null;
    }

    //学生管理D
    public Student delStudent(int sid) {
        //TODO
        return null;
    }

    //------------课程管理---------------
    //课程管理C
    public void addCourse(Course course) {
        //TODO
    } //课程管理C
    public void addCourse (int id, String name) {
        //TODO
    }

    //课程管理R
    public Course getCourses(int sid) {
        //TODO
        return null;
    }
    //课程管理R
    public ArrayList<Course>  getAllCourses() {
        return Courses;
    }

    //课程管理U
    public Student updateCourse(Student student) {
        //TODO
        return null;
    }
    //课程管理D
    public Student delCourse(int sid) {
        //TODO
        return null;
    }
    //------------选课及其成绩管理--------------
    //学生选课
    public StudentAndCourse studentSelectCourse(int sid, int cid) {
        //TODO
        return null;
    }
    //查询选课及成绩
    public StudentAndCourse getCourse(int sid) {
        //TODO
        return null;
    }
    //退课管理
    public StudentAndCourse delSelectCourse(int sid, int cid) {
        //TODO
        return null;
    }
    //登记成绩
    public StudentAndCourse addStudentAndCourseScore(int sid, int cid, double score) {
        //TODO
        return null;
    }
    //更新成绩
    public StudentAndCourse updateStudentAndCourseScore(int sid, int cid, double score) {
        //TODO
        return null;
    }
}
